<?php 
@session_start();
?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta charset="UTF-8">
 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
 <title>Login to TECHEDU</title>
 <meta name="viewport" content="width=device-width, initial-scale=1.0">
 <link rel="stylesheet" href="css/bootstrap.css" type="text/css">
 <link rel="stylesheet" href="css/bootstrap-responsive.css" type="text/css">
 <link rel="stylesheet" href="css/strip.css" type="text/css">
 <link rel="stylesheet" href="css/strip-responsive.css" type="text/css">
 <link rel="stylesheet" href="css/font-awesome.css" type="text/css">
 	<link href="http://fonts.googleapis.com/css?family=Open+Sans:400,300,700,600" rel="stylesheet">
 <link href='http://fonts.googleapis.com/css?family=Merriweather:400,700' rel='stylesheet' type='text/css'>
</head><body>
<section class="container">
 <nav class="navbar">
 <div class="navbar-inner">
 <div class="container">
 <a href="index.html" class="brand">TECH EDU</a>
<div class='pull-right'>
  New To TECHEDU?
<a href="signup.php" class="btn btn-primary btn-large" style='color: #D0DEE6;'>Register</a>
 </div>

 </div>
 </div>
 </nav>
</section>


<section class="section-box shadow">
 <div class="container"> 	
 <div class="row"> 	
 <article class="span4 center-align">					
<img alt="" src="img/photos/login_user.png">
 
 

 </article>

 <article class="span8">
  <?php
					if( isset($_SESSION['ERRMSG_ARR']) && is_array($_SESSION['ERRMSG_ARR']) && count($_SESSION['ERRMSG_ARR']) >0 ) {
						echo "<div class='alert alert-error'>";
						foreach($_SESSION['ERRMSG_ARR'] as $msg) {
							echo "<span><i class='icon-minus'></i>",$msg,"</span><br/>"; 
						}
						echo "</div><br/>";
					}
					unset($_SESSION['ERRMSG_ARR']);
					
					if(isset($_SESSION['logout'])){
		echo "<div class='alert alert-success'>" . $_SESSION['logout'] . "</div>";
		}
		unset($_SESSION['logout']);
	if(isset($_SESSION['user_login_need'])){
		echo "<div class='alert'>" . $_SESSION['user_login_need'] . "</div>";
		}
	unset($_SESSION['user_login_need']);
					
					?>
 <form class="form-horizontal" action='execute/login.php' method="POST">
  <fieldset>
    <div id="legend">
      <legend class="">Login to TECHEDU</legend>
    </div>
    
 
    <div class="control-group">
      <!-- E-mail -->
      <label class="control-label" for="email">E-mail</label>
      <div class="controls">
        <input type="text" id="email" name="email" placeholder="" class="input-xlarge">
        <p class="help-block">Please provide your E-mail</p>
      </div>
    </div>
 
    <div class="control-group">
      <!-- Password-->
      <label class="control-label" for="password">Password</label>
      <div class="controls">
        <input type="password" id="password" name="password" placeholder="" class="input-xlarge">
        <p class="help-block">Your Password Please</p>
      </div>
    </div>
 
 
    <div class="control-group">
      <!-- Button -->
      <div class="controls">
        <p><button type="submit" class="btn btn-success">Sign in</button> Or
<a href='#'>Forgot Password?</a>
</p>
      </div>
    </div>
  </fieldset>
</form>

 </article> 	
 		</div>
 </div> 
</section> 

<footer class="container footer-box"> 
 <hr class="shadow-line" /> 
 <nav class="links"> 
 <a href="#">About</a>
 <a href="#">Tour</a>
 <a href="#">Blog</a>
 <a href="#">Terms of Use</a>
 <a href="#">Support</a> 
 </nav> 
 <nav class="links"> 
 <a href="#"><i class='icon-twitter icon-2x'></i></a>
 <a href="#"><i class='icon-facebook icon-2x'></i></a> 
 <a href="#"><i class='icon-linkedin icon-2x'></i></a> 
 </nav> 
 <p>Powered by <strong>TECHNATION</strong></p> 
</footer>
<script src="./js/jquery-1.8.0.min.js"></script>
<script src="./js/bootstrap.js"></script>
</body>
</html>
